package com.zzj.service;

import com.github.pagehelper.PageInfo;
import com.zzj.ServiceImpl.ProductServiceImpl;
import com.zzj.bean.ProductBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(value = "production",fallback = ProductServiceImpl.class)
public interface Product {
    @GetMapping("product/findAllProduct")
    PageInfo<ProductBean> getAll(@RequestParam("pageNum") int pageNum, @RequestParam("pageSize")int pageSize);

}
